package com.study.java8;

import java.util.function.Supplier;

/**
 * @author ysy
 * @version 1.0
 * @Title: SupplierTest
 * @Note <b>ProjectName:</b> cusc-venus
 * <br><b>PackageName:</b> com.cusc.venus.acc.center.util
 * <br><b>ClassName:</b>
 * <br><b>Date:</b>
 *
 */
public class SupplierTest {

    public static void main(String[] args) {
        // 供给型函数式接口：无输入有返回 T get()
        Supplier<String> supplier = () -> "我要变的很有钱";
        System.out.println(supplier.get());
    }
}
